<html>
<head>
    <meta name="viewport" content="target-densitydpi=device-dpi"/>
    <style type="text/css">
        body{
        margin:0px 0px;
        }

    </style>
    <script src="https://code.jquery.com/jquery-2.2.4.min.js"
            type="text/javascript">
    </script>
    <script>
    $(document).ready(function(){
            $("button").click(function(){
                $.post("http://127.0.0.1:1894/datacollection",
                    {
                        systemTypeNo: "3",
                        businessTypeNo: "2",
                        recordTime: "1000000",
                        data: JSON.stringify({
                            busyTypes:["10010","呵呵++"],
                            cachemax:"10",
                            collectperiod:"0"
                        })
                    },
                    function (data, status) {
                        alert("数据：" + data + "\n状态：" + status);
                    },"json");

            });
        });

    </script>
</head>
<body>

<button style="width:100%;">向页面发送 HTTP POST 请求，并获得返回的结果</button>

</body>
</html>